<%= component_fields_for @record do |f| %>
  <%= f.check_box field, field.input_options %>
  <%= f.label field %>
  <%= @record.errors[field.name.to_sym].first %>
<% end %>